<script setup>
import AsideStudent from "../../components/AsideStudent.vue";
import Header from "../../components/Header.vue";
</script>
<template>
  <div style="height: 100%">
    <el-container style="min-height: 100vh">
      <el-aside
        width="200px"
        style="
          position: fixed;
          top: 0;
          left: 0;
          height: 100vh;
          background-color: rgb(238, 241, 246);
          overflow-x: hidden;
        "
      >
        <AsideStudent />
      </el-aside>

      <el-container style="margin-left: 200px">
        <el-header
          style="
            position: fixed;
            top: 0;
            left: 200px;
            right: 0;
            height: 60px;
            background-color: #fff;
            text-align: right;
            font-size: 12px;
            border-bottom: 1px solid #ccc;
            line-height: 60px;
            z-index: 1000;
          "
        >
          <Header />
        </el-header>

        <el-main style="margin-top: 20px">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.el-main {
  padding-top: 60px; /* 确保内容不被header覆盖 */
}
</style>
